package com.birdboot.test;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

/**
 *  URLDecoder类可以将%XX的内容进行还原
 */
public class URLDecoderDemo {
    public static void main(String[] args) throws UnsupportedEncodingException {
        String line = "/regUser?username=%E8%8C%83%E4%BC%A0%E5%A5%87&password=123456&nickname=%E4%BC%A0%E5%A5%87&age=22";
        line = URLDecoder.decode(line,"utf-8");
        System.out.println(line);

    }
}
